﻿<?php
$conn=mysql_connect("42.112.19.94","ktpmknet_android","12312") or die("khong ket noi duoc");
mysql_select_db("ktpmknet_android");

   $id=$_GET['id'];
   $email=$_GET['email'];
   $name=$_GET['name'];
   $sql_check="SELECT email FROM user WHERE email = '$email'";
   $querych=mysql_query($sql_check);
   $au_id = mysql_fetch_array($querych);
   $b=$au_id['email'];
   $sqlregister="INSERT INTO `user` ( `id`, `email`, `name` ) VALUES ( '$id','$email','$name' )";
 if($b=='') { $query=mysql_query($sqlregister); $b="219";}
   echo "$b";

?>
